<?php
class Exts_Views_Helpers_Disqus extends Zend_View_Helper_Abstract {

	public function disqus() {
		return $this;
	}

	public function showComments() {
		if( APPLICATION_ENV != 'production') {
			return '';
		}
		return '
		<div id="disqus_thread"></div>
		<script type="text/javascript">
			(function() {
				var dsq = document.createElement("script");
				dsq.type = "text/javascript"; dsq.async = true;
				dsq.src = "http://dondejugarpaintball.disqus.com/embed.js";
				(document.getElementsByTagName("head")[0]
					|| document.getElementsByTagName("body")[0]).appendChild(dsq);
			})();
		</script>
		';

	}
}